package tests;

import static org.junit.Assert.*;

import org.junit.Test;

import fileManagers.FileUtilities;

/**
 * 
 * Test FileUtilities03 (con JUnit): testa il funzionamento della classe FileUtilities.
 * 
 */

public class FileUtilitiesTest03 {

	@Test
	public void test() {
		
		String folder = "Desktop/Immagini";

		String name = "Arcobaleno.jpeg";
		String name2 = "/Arcobaleno.jpeg";
		
		String expectedString = "Desktop/Immagini/Arcobaleno.jpeg";
		String expectedString2 = "/Arcobaleno.jpeg";
		
		assertEquals("Correct pathName", expectedString, FileUtilities.nameToPath(folder, name));
		assertEquals("Correct pathName", expectedString2, FileUtilities.nameToPath(folder, name2));


	}

}
